﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;

namespace KsWare.Breconium.Core
{
	static class Lib {

		internal static void Trace(string message) {Trace("{0}",message);}

		internal static void Trace(string format, params object[] args) {
			var message = ((args == null || args.Length == 0) ? format : string.Format(string.Format(format, args)));
			message = string.Format("{0:HH:mm:ss.fff} {1,4} {2}", DateTime.Now, Thread.CurrentThread.ManagedThreadId, message);
			System.Diagnostics.Trace.WriteLine(message);
		}
	}
}
